package com.tianshuo.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @ClassName : PropertiesConf
 * @Description : 配置文件读取测试。
 * @Author : tianshuo
 * @Date: 2020-08-27 11:00
 */
@Component
@PropertySource(value = "classpath:test.properties")
public class PropertiesConf {

    @Value("${name}")
    private String name;

    public String getName() {
        return name;
    }
}

